/*
               File: Periodista
        Description: Periodista
             Author: GeneXus C# Generator version 10_2_1-58381
       Generated on: 8/29/2012 22:25:59.46
       Program type: Callable routine
          Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using System.Data;
using System.Data.SqlClient;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using System.Xml.Serialization;
using System.Data.SqlTypes;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace GeneXus.Programs {
   public class periodista : GXDataArea, System.Web.SessionState.IRequiresSessionState
   {
      protected void INITENV( )
      {
         if ( GxWebError != 0 )
         {
            return  ;
         }
      }

      protected void INITTRN( )
      {
         initialize_properties( ) ;
         entryPointCalled = false ;
         gxfirstwebparm = GetNextPar( ) ;
         gxfirstwebparm_bkp = gxfirstwebparm ;
         gxfirstwebparm = DecryptAjaxCall( gxfirstwebparm) ;
         if ( StringUtil.StrCmp(gxfirstwebparm, "dyncall") == 0 )
         {
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            dyncall( GetNextPar( )) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxJX_Action3") == 0 )
         {
            Gx_mode = GetNextPar( ) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            A3PeriodistaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
            A4PeriodistaNombre = GetNextPar( ) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            XC_3_0211( Gx_mode, A3PeriodistaId, A4PeriodistaNombre) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxEvt") == 0 )
         {
            setAjaxEventMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = GetNextPar( ) ;
         }
         else
         {
            if ( ! IsValidAjaxCall( false) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = gxfirstwebparm_bkp ;
         }
         if ( ! entryPointCalled )
         {
            Gx_mode = gxfirstwebparm ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") != 0 )
            {
               AV7PeriodistaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV7PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV7PeriodistaId), 4, 0)));
            }
         }
         chkPeriodistaPremiado.Name = "PERIODISTAPREMIADO" ;
         chkPeriodistaPremiado.WebTags = "" ;
         chkPeriodistaPremiado.Caption = "" ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, chkPeriodistaPremiado_Internalname, "Caption", chkPeriodistaPremiado.Caption);
         chkPeriodistaPremiado.CheckedValue = "false" ;
         Form.Meta.addItem("Generator", "GeneXus C# 10_2_1-58381", 0) ;
         Form.Meta.addItem("Description", "Periodista", 0) ;
         context.wjLoc = "" ;
         context.nUserReturn = 0 ;
         context.wbHandled = 0 ;
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
         }
         GX_FocusControl = edtPeriodistaNombre_Internalname ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         wbErr = false ;
         context.SetDefaultTheme("GeneXusXEv2");
      }

      public periodista( )
      {
         context = new GxContext(  );
         DataStoreUtil.LoadDataStores( context);
         dsDefault = context.GetDataStore("Default") ;
         IsMain = true;
         context.SetDefaultTheme("GeneXusXEv2");
      }

      public periodista( IGxContext context )
      {
         this.context = context;
         IsMain = false;
         dsDefault = context.GetDataStore("Default") ;
      }

      public void release( )
      {
      }

      public void execute( String aP0_Gx_mode ,
                           short aP1_PeriodistaId )
      {
         this.Gx_mode = aP0_Gx_mode;
         this.AV7PeriodistaId = aP1_PeriodistaId;
         executePrivate();
      }

      void executePrivate( )
      {
         isStatic = false;
         webExecute();
      }

      protected override void createObjects( )
      {
         chkPeriodistaPremiado = new GXCheckbox();
      }

      public override void webExecute( )
      {
         if ( initialized == 0 )
         {
            createObjects();
            initialize();
         }
         INITENV( ) ;
         INITTRN( ) ;
         if ( ( GxWebError == 0 ) && ! isAjaxCallMode( ) )
         {
            MasterPageObj = (GXMasterPage) ClassLoader.GetInstance("appmasterpage", "GeneXus.Programs.appmasterpage", new Object[] {new GxContext( context.handle, context.DataStores, context.HttpContext)});
            MasterPageObj.setDataArea(this,false);
            MasterPageObj.webExecute();
            if ( context.isAjaxRequest( ) )
            {
               enableOutput();
               if ( ! context.isAjaxRequest( ) )
               {
                  context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) )
               {
                  context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
               }
               else
               {
                  if ( context.isAjaxRequest( ) )
                  {
                     disableOutput();
                  }
                  RenderHtmlHeaders( ) ;
                  context.Redirect( context.wjLoc );
                  context.DispatchAjaxCommands();
               }
            }
         }
         this.cleanup();
      }

      protected void Draw( )
      {
         if ( context.isAjaxRequest( ) )
         {
            disableOutput();
         }
         if ( ! GxWebStd.gx_redirect( context) )
         {
            disable_std_buttons( ) ;
            enableDisable( ) ;
            set_caption( ) ;
            /* Form start */
            wb_table1_2_0211( true) ;
         }
         return  ;
      }

      protected void wb_table1_2_0211e( bool wbgen )
      {
         if ( wbgen )
         {
         }
         /* Execute Exit event if defined. */
      }

      protected void wb_table1_2_0211( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTablemain_Internalname, tblTablemain_Internalname, "", "TableBorder100x100", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table2_5_0211( true) ;
         }
         return  ;
      }

      protected void wb_table2_5_0211e( bool wbgen )
      {
         if ( wbgen )
         {
            /* Control Group */
            ClassString = "Group" ;
            StyleString = "" ;
            context.WriteHtmlText( "<fieldset id=\""+grpGroupdata_Internalname+"\""+" style=\"-moz-border-radius:3pt;\""+" class=\""+ClassString+"\">") ;
            context.WriteHtmlText( "<legend class=\""+ClassString+"Title"+"\">"+"Periodista"+"</legend>") ;
            wb_table3_28_0211( true) ;
         }
         return  ;
      }

      protected void wb_table3_28_0211e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</fieldset>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table1_2_0211e( true) ;
         }
         else
         {
            wb_table1_2_0211e( false) ;
         }
      }

      protected void wb_table3_28_0211( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable1_Internalname, tblTable1_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            ClassString = "ErrorViewer" ;
            StyleString = "" ;
            GxWebStd.gx_msg_list( context, "", context.GX_msglist.DisplayMode, StyleString, ClassString, "", "false");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table4_34_0211( true) ;
         }
         return  ;
      }

      protected void wb_table4_34_0211e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 67,'',false,'',0)\"" ;
            ClassString = "BtnEnter" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_enter_Internalname, "", "Confirmar", bttBtn_enter_Jsonclick, 5, "Confirmar", "", StyleString, ClassString, bttBtn_enter_Visible, 1, "standard", "EENTER.", TempTags, "", context.GetButtonType( ), "HLP_Periodista.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 68,'',false,'',0)\"" ;
            ClassString = "BtnCancel" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_cancel_Internalname, "", "Cancelar", bttBtn_cancel_Jsonclick, 1, "Cancelar", "", StyleString, ClassString, bttBtn_cancel_Visible, 1, "standard", "ECANCEL.", TempTags, "", context.GetButtonType( ), "HLP_Periodista.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 69,'',false,'',0)\"" ;
            ClassString = "BtnDelete" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, bttBtn_delete_Internalname, "", "Eliminar", bttBtn_delete_Jsonclick, 5, "Eliminar", "", StyleString, ClassString, bttBtn_delete_Visible, 0, "standard", "EDELETE.", TempTags, "", context.GetButtonType( ), "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table3_28_0211e( true) ;
         }
         else
         {
            wb_table3_28_0211e( false) ;
         }
      }

      protected void wb_table4_34_0211( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable2_Internalname, tblTable2_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistaid_Internalname, "Id", "", "", lblTextblockperiodistaid_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A3PeriodistaId), 4, 0, ",", "")), ((edtPeriodistaId_Enabled!=0) ? StringUtil.LTrim( context.localUtil.Format( (decimal)(A3PeriodistaId), "ZZZ9")) : context.localUtil.Format( (decimal)(A3PeriodistaId), "ZZZ9")), "", "", "", "", "", "", edtPeriodistaId_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaId_Enabled, 0, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "Id", "right", "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistanombre_Internalname, "Nombre", "", "", lblTextblockperiodistanombre_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 44,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaNombre_Internalname, StringUtil.RTrim( A4PeriodistaNombre), StringUtil.RTrim( context.localUtil.Format( A4PeriodistaNombre, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(44);\"", "", "", "", "", "", edtPeriodistaNombre_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaNombre_Enabled, 0, "text", "", 40, "chr", 1, "row", 40, 0, 0, 0, 1, -1, true, "", "left", "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistaapellido_Internalname, "Apellido", "", "", lblTextblockperiodistaapellido_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 49,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaApellido_Internalname, StringUtil.RTrim( A5PeriodistaApellido), StringUtil.RTrim( context.localUtil.Format( A5PeriodistaApellido, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(49);\"", "", "", "", "", "", edtPeriodistaApellido_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaApellido_Enabled, 0, "text", "", 40, "chr", 1, "row", 40, 0, 0, 0, 1, -1, true, "", "left", "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistasueldo_Internalname, "Sueldo", "", "", lblTextblockperiodistasueldo_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 54,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaSueldo_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A6PeriodistaSueldo), 4, 0, ",", "")), ((edtPeriodistaSueldo_Enabled!=0) ? StringUtil.LTrim( context.localUtil.Format( (decimal)(A6PeriodistaSueldo), "ZZZ9")) : context.localUtil.Format( (decimal)(A6PeriodistaSueldo), "ZZZ9")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.num.valid_integer( this,'.');"+";gx.evt.onblur(54);\"", "", "", "", "", "", edtPeriodistaSueldo_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaSueldo_Enabled, 0, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "", "right", "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistapremiado_Internalname, "Premiado", "", "", lblTextblockperiodistapremiado_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Check box */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 59,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_checkbox_ctrl( context, chkPeriodistaPremiado_Internalname, StringUtil.BoolToStr( A7PeriodistaPremiado), "", 1, chkPeriodistaPremiado.Enabled, "true", "", StyleString, ClassString, TempTags+" onclick=\"gx.fn.checkboxClick(59, this, 'true', 'false');gx.evt.onchange(this);\" "+" onblur=\""+""+";gx.evt.onblur(59);\"");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"td5\"  style=\"vertical-align:top\">") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockperiodistamonto_Internalname, "Monto", "", "", lblTextblockperiodistamonto_Jsonclick, "", StyleString, ClassString, 0, "", 1, 1, 0, "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 64,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtPeriodistaMonto_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A40PeriodistaMonto), 4, 0, ",", "")), ((edtPeriodistaMonto_Enabled!=0) ? StringUtil.LTrim( context.localUtil.Format( (decimal)(A40PeriodistaMonto), "ZZZ9")) : context.localUtil.Format( (decimal)(A40PeriodistaMonto), "ZZZ9")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.num.valid_integer( this,'.');"+";gx.evt.onblur(64);\"", "", "", "", "", "", edtPeriodistaMonto_Jsonclick, 0, ClassString, StyleString, "", 1, edtPeriodistaMonto_Enabled, 0, "text", "", 4, "chr", 1, "row", 4, 0, 0, 0, 1, -1, true, "", "right", "HLP_Periodista.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table4_34_0211e( true) ;
         }
         else
         {
            wb_table4_34_0211e( false) ;
         }
      }

      protected void wb_table2_5_0211( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTabletoolbar_Internalname, tblTabletoolbar_Internalname, "", "ViewTable", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Div Control */
            ClassString = "ToolbarMain" ;
            StyleString = "" ;
            GxWebStd.gx_div_start( context, divSectiontoolbar_Internalname, 1, 0, "px", 0, "px", ClassString);
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 9,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_Internalname, context.GetImagePath( "b9e06284-17ac-4c88-8937-5dbd84ad5d80", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_first_Visible, 1, "", "Primero", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_first_Jsonclick, "EFIRST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 10,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_first_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_first_separator_Jsonclick, "EFIRST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 11,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_Internalname, context.GetImagePath( "7d212604-db7b-4785-9c0d-5faffe71aa33", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_previous_Visible, 1, "", "Anterior", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_previous_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 12,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_previous_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_previous_separator_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 13,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_Internalname, context.GetImagePath( "1ae947cf-1354-41a9-8d59-d91daebf554f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_next_Visible, 1, "", "Siguiente", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_next_Jsonclick, "ENEXT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 14,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_next_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_next_separator_Jsonclick, "ENEXT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 15,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_Internalname, context.GetImagePath( "29211874-e613-48e5-9011-8017d984217e", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_last_Visible, 1, "", "Ultimo", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_last_Jsonclick, "ELAST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 16,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_last_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_last_separator_Jsonclick, "ELAST.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 17,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_Internalname, context.GetImagePath( "1ca03f75-9947-4d2c-90a4-e8ab9c5cedea", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_select_Visible, 1, "", "Seleccionar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_select_Jsonclick, "ESELECT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 18,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_select_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_select_separator_Jsonclick, "ESELECT.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 19,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_Internalname, context.GetImagePath( "2061cf2c-bd33-4433-a13e-34af954142e9", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_enter2_Visible, imgBtn_enter2_Enabled, "", "Confirmar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_enter2_Jsonclick, "EENTER.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 20,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_enter2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_enter2_separator_Jsonclick, "EENTER.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 21,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_Internalname, context.GetImagePath( "0e94ced8-bc34-47ff-9a53-bc683736a686", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_cancel2_Visible, 1, "", "Cancelar", 0, 0, 0, "", 0, "", 0, 0, 1, imgBtn_cancel2_Jsonclick, "ECANCEL.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 22,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_cancel2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 1, imgBtn_cancel2_separator_Jsonclick, "ECANCEL.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 23,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_Internalname, context.GetImagePath( "7695fe89-52c9-4b7e-871e-0e11548f823e", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_delete2_Visible, imgBtn_delete2_Enabled, "", "Eliminar", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_delete2_Jsonclick, "EDELETE.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 24,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_separator_Internalname, context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", context.GetTheme( )), "", "", "", context.GetTheme( ), imgBtn_delete2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, 5, imgBtn_delete2_separator_Jsonclick, "EDELETE.", StyleString, ClassString, "", "", ""+TempTags, "", "", 1, false, false, "HLP_Periodista.htm");
            context.WriteHtmlText( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table2_5_0211e( true) ;
         }
         else
         {
            wb_table2_5_0211e( false) ;
         }
      }

      protected void UserMain( )
      {
         standaloneStartup( ) ;
      }

      protected void standaloneStartup( )
      {
         standaloneStartupServer( ) ;
         disable_std_buttons( ) ;
         enableDisable( ) ;
         Process( ) ;
      }

      protected void standaloneStartupServer( )
      {
         /* Execute Start event if defined. */
         context.wbGlbDoneStart = 0 ;
         /* Execute user event: E11022 */
         E11022 ();
         context.wbGlbDoneStart = 1 ;
         assign_properties_default( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
            {
               /* Read saved SDTs. */
               /* Read variables values. */
               A3PeriodistaId = (short)(context.localUtil.CToN( cgiGet( edtPeriodistaId_Internalname), ",", ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
               A4PeriodistaNombre = cgiGet( edtPeriodistaNombre_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
               A5PeriodistaApellido = cgiGet( edtPeriodistaApellido_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5PeriodistaApellido", A5PeriodistaApellido);
               if ( ( ( context.localUtil.CToN( cgiGet( edtPeriodistaSueldo_Internalname), ",", ".") < Convert.ToDecimal( 0 )) ) || ( ( context.localUtil.CToN( cgiGet( edtPeriodistaSueldo_Internalname), ",", ".") > Convert.ToDecimal( 9999 )) ) )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_badnum", ""), 1, "PERIODISTASUELDO");
                  AnyError = 1 ;
                  GX_FocusControl = edtPeriodistaSueldo_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A6PeriodistaSueldo = 0 ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6PeriodistaSueldo", StringUtil.LTrim( StringUtil.Str( (decimal)(A6PeriodistaSueldo), 4, 0)));
               }
               else
               {
                  A6PeriodistaSueldo = (short)(context.localUtil.CToN( cgiGet( edtPeriodistaSueldo_Internalname), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6PeriodistaSueldo", StringUtil.LTrim( StringUtil.Str( (decimal)(A6PeriodistaSueldo), 4, 0)));
               }
               A7PeriodistaPremiado = StringUtil.StrToBool( cgiGet( chkPeriodistaPremiado_Internalname)) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A7PeriodistaPremiado", StringUtil.BoolToStr( A7PeriodistaPremiado));
               if ( ( ( context.localUtil.CToN( cgiGet( edtPeriodistaMonto_Internalname), ",", ".") < Convert.ToDecimal( 0 )) ) || ( ( context.localUtil.CToN( cgiGet( edtPeriodistaMonto_Internalname), ",", ".") > Convert.ToDecimal( 9999 )) ) )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_badnum", ""), 1, "PERIODISTAMONTO");
                  AnyError = 1 ;
                  GX_FocusControl = edtPeriodistaMonto_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A40PeriodistaMonto = 0 ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A40PeriodistaMonto", StringUtil.LTrim( StringUtil.Str( (decimal)(A40PeriodistaMonto), 4, 0)));
               }
               else
               {
                  A40PeriodistaMonto = (short)(context.localUtil.CToN( cgiGet( edtPeriodistaMonto_Internalname), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A40PeriodistaMonto", StringUtil.LTrim( StringUtil.Str( (decimal)(A40PeriodistaMonto), 4, 0)));
               }
               /* Read saved values. */
               Z3PeriodistaId = (short)(context.localUtil.CToN( cgiGet( "Z3PeriodistaId"), ",", ".")) ;
               Z4PeriodistaNombre = cgiGet( "Z4PeriodistaNombre") ;
               Z5PeriodistaApellido = cgiGet( "Z5PeriodistaApellido") ;
               Z6PeriodistaSueldo = (short)(context.localUtil.CToN( cgiGet( "Z6PeriodistaSueldo"), ",", ".")) ;
               Z7PeriodistaPremiado = StringUtil.StrToBool( cgiGet( "Z7PeriodistaPremiado")) ;
               Z40PeriodistaMonto = (short)(context.localUtil.CToN( cgiGet( "Z40PeriodistaMonto"), ",", ".")) ;
               IsConfirmed = (short)(context.localUtil.CToN( cgiGet( "IsConfirmed"), ",", ".")) ;
               IsModified = (short)(context.localUtil.CToN( cgiGet( "IsModified"), ",", ".")) ;
               Gx_mode = cgiGet( "Mode") ;
               AV7PeriodistaId = (short)(context.localUtil.CToN( cgiGet( "vPERIODISTAID"), ",", ".")) ;
               AV13Pgmname = cgiGet( "vPGMNAME") ;
               Gx_mode = cgiGet( "vMODE") ;
               /* Read subfile selected row values. */
               /* Read hidden variables. */
               standaloneNotModal( ) ;
            }
            else
            {
               standaloneNotModal( ) ;
               if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") == 0 )
               {
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  A3PeriodistaId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
                  getEqualNoModal( ) ;
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  disable_std_buttons( ) ;
                  standaloneModal( ) ;
               }
               else
               {
                  if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
                  {
                     sMode11 = Gx_mode ;
                     Gx_mode = "UPD" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     Gx_mode = sMode11 ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  }
                  standaloneModal( ) ;
                  if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
                  {
                     getByPrimaryKey( ) ;
                     if ( RcdFound11 == 1 )
                     {
                        if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
                        {
                           /* Confirm record */
                           CONFIRM_020( ) ;
                           if ( AnyError == 0 )
                           {
                              GX_FocusControl = bttBtn_enter_Internalname ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_noinsert", ""), 1, "PERIODISTAID");
                        AnyError = 1 ;
                     }
                  }
               }
            }
         }
      }

      protected void Process( )
      {
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
            /* Read Transaction buttons. */
            sEvt = cgiGet( "_EventName") ;
            EvtGridId = cgiGet( "_EventGridId") ;
            EvtRowId = cgiGet( "_EventRowId") ;
            if ( StringUtil.Len( sEvt) > 0 )
            {
               sEvtType = StringUtil.Left( sEvt, 1) ;
               sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
               if ( StringUtil.StrCmp(sEvtType, "M") != 0 )
               {
                  if ( StringUtil.StrCmp(sEvtType, "E") == 0 )
                  {
                     sEvtType = StringUtil.Right( sEvt, 1) ;
                     if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                     {
                        sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                        if ( StringUtil.StrCmp(sEvt, "START") == 0 )
                        {
                           context.wbHandled = 1 ;
                           dynload_actions( ) ;
                           /* Execute user event: E11022 */
                           E11022 ();
                        }
                        else if ( StringUtil.StrCmp(sEvt, "AFTER TRN") == 0 )
                        {
                           context.wbHandled = 1 ;
                           dynload_actions( ) ;
                           /* Execute user event: E12022 */
                           E12022 ();
                        }
                        else if ( StringUtil.StrCmp(sEvt, "ENTER") == 0 )
                        {
                           context.wbHandled = 1 ;
                           if ( StringUtil.StrCmp(Gx_mode, "DSP") != 0 )
                           {
                              btn_enter( ) ;
                           }
                           /* No code required for Cancel button. It is implemented as the Reset button. */
                        }
                        else if ( StringUtil.StrCmp(sEvt, "FIRST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "PREVIOUS") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "NEXT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "LAST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "SELECT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "DELETE") == 0 )
                        {
                           context.wbHandled = 1 ;
                           if ( StringUtil.StrCmp(Gx_mode, "DSP") != 0 )
                           {
                              btn_delete( ) ;
                           }
                        }
                     }
                     else
                     {
                     }
                  }
                  context.wbHandled = 1 ;
               }
            }
         }
      }

      protected void AfterTrn( )
      {
         if ( trnEnded == 1 )
         {
            /* Execute user event: E12022 */
            E12022 ();
            trnEnded = 0 ;
            standaloneNotModal( ) ;
            standaloneModal( ) ;
            if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )  )
            {
               /* Clear variables for new insertion. */
               InitAll0211( ) ;
               standaloneNotModal( ) ;
               standaloneModal( ) ;
            }
         }
      }

      public override String ToString( )
      {
         return "" ;
      }

      public GxContentInfo GetContentInfo( )
      {
         return (GxContentInfo)(null) ;
      }

      protected void disable_std_buttons( )
      {
         imgBtn_delete2_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
         imgBtn_delete2_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
         bttBtn_delete_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
         imgBtn_first_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_Visible), 5, 0)));
         imgBtn_first_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_separator_Visible), 5, 0)));
         imgBtn_previous_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_Visible), 5, 0)));
         imgBtn_previous_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_separator_Visible), 5, 0)));
         imgBtn_next_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_Visible), 5, 0)));
         imgBtn_next_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_separator_Visible), 5, 0)));
         imgBtn_last_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_Visible), 5, 0)));
         imgBtn_last_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_separator_Visible), 5, 0)));
         imgBtn_select_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_Visible), 5, 0)));
         imgBtn_select_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_separator_Visible), 5, 0)));
         if ( ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            imgBtn_delete2_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
            imgBtn_delete2_separator_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
            bttBtn_delete_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
            if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
            {
               imgBtn_enter2_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Visible), 5, 0)));
               imgBtn_enter2_separator_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_separator_Visible), 5, 0)));
               bttBtn_enter_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_enter_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_enter_Visible), 5, 0)));
            }
            DisableAttributes0211( ) ;
         }
      }

      protected void set_caption( )
      {
         if ( ( IsConfirmed == 1 ) && ( AnyError == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_confdelete", ""), 0, "");
            }
            else
            {
               GX_msglist.addItem(context.GetMessage( "GXM_mustconfirm", ""), 0, "");
            }
         }
      }

      protected void CONFIRM_020( )
      {
         BeforeValidate0211( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               OnDeleteControls0211( ) ;
            }
            else
            {
               CheckExtendedTable0211( ) ;
               CloseExtendedTableCursors0211( ) ;
            }
         }
         if ( AnyError == 0 )
         {
            IsConfirmed = 1 ;
         }
      }

      protected void ResetCaption020( )
      {
      }

      protected void E11022( )
      {
         /* Start Routine */
         new isauthorized(context ).execute(  AV13Pgmname, out  AV9IsAuthorized) ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Pgmname", AV13Pgmname);
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV9IsAuthorized", StringUtil.BoolToStr( AV9IsAuthorized));
         if ( ! AV9IsAuthorized )
         {
            context.wjLoc = formatLink("notauthorized.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV13Pgmname)) ;
         }
         AV10TrnContext.FromXml(AV11WebSession.Get("TrnContext"), "");
      }

      protected void E12022( )
      {
         /* After Trn Routine */
         if ( ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) && ! AV10TrnContext.gxTpr_Callerondelete )
         {
            context.wjLoc = formatLink("wwperiodista.aspx")  ;
         }
         context.setWebReturnParms(new Object[] {});
         context.nUserReturn = 1 ;
         returnInSub = true;
         if (true) return;
      }

      protected void ZM0211( short GX_JID )
      {
         if ( ( GX_JID == 4 ) || ( GX_JID == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
            {
               Z4PeriodistaNombre = T00023_A4PeriodistaNombre[0] ;
               Z5PeriodistaApellido = T00023_A5PeriodistaApellido[0] ;
               Z6PeriodistaSueldo = T00023_A6PeriodistaSueldo[0] ;
               Z7PeriodistaPremiado = T00023_A7PeriodistaPremiado[0] ;
               Z40PeriodistaMonto = T00023_A40PeriodistaMonto[0] ;
            }
            else
            {
               Z4PeriodistaNombre = A4PeriodistaNombre ;
               Z5PeriodistaApellido = A5PeriodistaApellido ;
               Z6PeriodistaSueldo = A6PeriodistaSueldo ;
               Z7PeriodistaPremiado = A7PeriodistaPremiado ;
               Z40PeriodistaMonto = A40PeriodistaMonto ;
            }
         }
         if ( GX_JID == -4 )
         {
            Z3PeriodistaId = A3PeriodistaId ;
            Z4PeriodistaNombre = A4PeriodistaNombre ;
            Z5PeriodistaApellido = A5PeriodistaApellido ;
            Z6PeriodistaSueldo = A6PeriodistaSueldo ;
            Z7PeriodistaPremiado = A7PeriodistaPremiado ;
            Z40PeriodistaMonto = A40PeriodistaMonto ;
         }
      }

      protected void standaloneNotModal( )
      {
         edtPeriodistaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaId_Enabled), 5, 0)));
         edtPeriodistaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaId_Enabled), 5, 0)));
         imgBtn_delete2_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Enabled), 5, 0)));
         if ( ! (0==AV7PeriodistaId) )
         {
            A3PeriodistaId = AV7PeriodistaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
         }
      }

      protected void standaloneModal( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
         {
            imgBtn_enter2_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
         else
         {
            imgBtn_enter2_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
      }

      protected void Load0211( )
      {
         /* Using cursor T00024 */
         pr_default.execute(2, new Object[] {A3PeriodistaId});
         if ( (pr_default.getStatus(2) != 101) )
         {
            RcdFound11 = 1 ;
            A4PeriodistaNombre = T00024_A4PeriodistaNombre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
            A5PeriodistaApellido = T00024_A5PeriodistaApellido[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5PeriodistaApellido", A5PeriodistaApellido);
            A6PeriodistaSueldo = T00024_A6PeriodistaSueldo[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6PeriodistaSueldo", StringUtil.LTrim( StringUtil.Str( (decimal)(A6PeriodistaSueldo), 4, 0)));
            A7PeriodistaPremiado = T00024_A7PeriodistaPremiado[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A7PeriodistaPremiado", StringUtil.BoolToStr( A7PeriodistaPremiado));
            A40PeriodistaMonto = T00024_A40PeriodistaMonto[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A40PeriodistaMonto", StringUtil.LTrim( StringUtil.Str( (decimal)(A40PeriodistaMonto), 4, 0)));
            ZM0211( -4) ;
         }
         pr_default.close(2);
         OnLoadActions0211( ) ;
      }

      protected void OnLoadActions0211( )
      {
         AV13Pgmname = "Periodista" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Pgmname", AV13Pgmname);
      }

      protected void CheckExtendedTable0211( )
      {
         Gx_BScreen = 1 ;
         standaloneModal( ) ;
         AV13Pgmname = "Periodista" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Pgmname", AV13Pgmname);
      }

      protected void CloseExtendedTableCursors0211( )
      {
      }

      protected void enableDisable( )
      {
      }

      protected void GetKey0211( )
      {
         /* Using cursor T00025 */
         pr_default.execute(3, new Object[] {A3PeriodistaId});
         if ( (pr_default.getStatus(3) != 101) )
         {
            RcdFound11 = 1 ;
         }
         else
         {
            RcdFound11 = 0 ;
         }
         pr_default.close(3);
      }

      protected void getByPrimaryKey( )
      {
         /* Using cursor T00023 */
         pr_default.execute(1, new Object[] {A3PeriodistaId});
         if ( (pr_default.getStatus(1) != 101) )
         {
            ZM0211( 4) ;
            RcdFound11 = 1 ;
            A3PeriodistaId = T00023_A3PeriodistaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
            A4PeriodistaNombre = T00023_A4PeriodistaNombre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
            A5PeriodistaApellido = T00023_A5PeriodistaApellido[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5PeriodistaApellido", A5PeriodistaApellido);
            A6PeriodistaSueldo = T00023_A6PeriodistaSueldo[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6PeriodistaSueldo", StringUtil.LTrim( StringUtil.Str( (decimal)(A6PeriodistaSueldo), 4, 0)));
            A7PeriodistaPremiado = T00023_A7PeriodistaPremiado[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A7PeriodistaPremiado", StringUtil.BoolToStr( A7PeriodistaPremiado));
            A40PeriodistaMonto = T00023_A40PeriodistaMonto[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A40PeriodistaMonto", StringUtil.LTrim( StringUtil.Str( (decimal)(A40PeriodistaMonto), 4, 0)));
            Z3PeriodistaId = A3PeriodistaId ;
            sMode11 = Gx_mode ;
            Gx_mode = "" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            Load0211( ) ;
            Gx_mode = sMode11 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         else
         {
            RcdFound11 = 0 ;
            InitializeNonKey0211( ) ;
            sMode11 = Gx_mode ;
            Gx_mode = "" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            standaloneModal( ) ;
            Gx_mode = sMode11 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         pr_default.close(1);
      }

      protected void getEqualNoModal( )
      {
         GetKey0211( ) ;
         if ( RcdFound11 == 0 )
         {
         }
         else
         {
         }
         getByPrimaryKey( ) ;
      }

      protected void move_next( )
      {
         RcdFound11 = 0 ;
         /* Using cursor T00026 */
         pr_default.execute(4, new Object[] {A3PeriodistaId});
         if ( (pr_default.getStatus(4) != 101) )
         {
            while ( (pr_default.getStatus(4) != 101) && ( ( T00026_A3PeriodistaId[0] < A3PeriodistaId ) ) )
            {
               pr_default.readNext(4);
            }
            if ( (pr_default.getStatus(4) != 101) && ( ( T00026_A3PeriodistaId[0] > A3PeriodistaId ) ) )
            {
               A3PeriodistaId = T00026_A3PeriodistaId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
               RcdFound11 = 1 ;
            }
         }
         pr_default.close(1);
      }

      protected void move_previous( )
      {
         RcdFound11 = 0 ;
         /* Using cursor T00027 */
         pr_default.execute(5, new Object[] {A3PeriodistaId});
         if ( (pr_default.getStatus(5) != 101) )
         {
            while ( (pr_default.getStatus(5) != 101) && ( ( T00027_A3PeriodistaId[0] > A3PeriodistaId ) ) )
            {
               pr_default.readNext(5);
            }
            if ( (pr_default.getStatus(5) != 101) && ( ( T00027_A3PeriodistaId[0] < A3PeriodistaId ) ) )
            {
               A3PeriodistaId = T00027_A3PeriodistaId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
               RcdFound11 = 1 ;
            }
         }
         pr_default.close(0);
      }

      protected void btn_enter( )
      {
         nKeyPressed = 1 ;
         GetKey0211( ) ;
         if ( RcdFound11 == 1 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_noupdate", ""), "DuplicatePrimaryKey", 1, "PERIODISTAID");
               AnyError = 1 ;
            }
            else if ( A3PeriodistaId != Z3PeriodistaId )
            {
               A3PeriodistaId = Z3PeriodistaId ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
               GX_msglist.addItem(context.GetMessage( "GXM_getbeforeupd", ""), "CandidateKeyNotFound", 1, "PERIODISTAID");
               AnyError = 1 ;
            }
            else if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               delete( ) ;
               AfterTrn( ) ;
               GX_FocusControl = edtPeriodistaNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
            else
            {
               /* Update record */
               Update0211( ) ;
               GX_FocusControl = edtPeriodistaNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
         }
         else
         {
            if ( A3PeriodistaId != Z3PeriodistaId )
            {
               /* Insert record */
               GX_FocusControl = edtPeriodistaNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
               Insert0211( ) ;
               if ( AnyError == 1 )
               {
                  GX_FocusControl = "" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
               }
            }
            else
            {
               if ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_recdeleted", ""), 1, "PERIODISTAID");
                  AnyError = 1 ;
               }
               else
               {
                  /* Insert record */
                  GX_FocusControl = edtPeriodistaNombre_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  Insert0211( ) ;
                  if ( AnyError == 1 )
                  {
                     GX_FocusControl = "" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  }
               }
            }
         }
         AfterTrn( ) ;
         if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            if ( AnyError == 0 )
            {
               context.nUserReturn = 1 ;
            }
         }
      }

      protected void btn_delete( )
      {
         if ( A3PeriodistaId != Z3PeriodistaId )
         {
            A3PeriodistaId = Z3PeriodistaId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
            GX_msglist.addItem(context.GetMessage( "GXM_getbeforedlt", ""), 1, "PERIODISTAID");
            AnyError = 1 ;
         }
         else
         {
            delete( ) ;
            AfterTrn( ) ;
            GX_FocusControl = edtPeriodistaNombre_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError != 0 )
         {
         }
      }

      protected void CheckOptimisticConcurrency0211( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            /* Using cursor T00028 */
            pr_default.execute(6, new Object[] {A3PeriodistaId});
            if ( (pr_default.getStatus(6) == 103) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Periodista"}), "RecordIsLocked", 1, "");
               AnyError = 1 ;
               return  ;
            }
            if ( (pr_default.getStatus(6) == 101) || ( StringUtil.StrCmp(Z4PeriodistaNombre, T00028_A4PeriodistaNombre[0]) != 0 ) || ( StringUtil.StrCmp(Z5PeriodistaApellido, T00028_A5PeriodistaApellido[0]) != 0 ) || ( Z6PeriodistaSueldo != T00028_A6PeriodistaSueldo[0] ) || ( Z7PeriodistaPremiado != T00028_A7PeriodistaPremiado[0] ) || ( Z40PeriodistaMonto != T00028_A40PeriodistaMonto[0] ) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_waschg", new   object[]  {"Periodista"}), "RecordWasChanged", 1, "");
               AnyError = 1 ;
               return  ;
            }
         }
      }

      protected void Insert0211( )
      {
         BeforeValidate0211( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable0211( ) ;
         }
         if ( AnyError == 0 )
         {
            ZM0211( 0) ;
            CheckOptimisticConcurrency0211( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm0211( ) ;
               if ( AnyError == 0 )
               {
                  BeforeInsert0211( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T00029 */
                     pr_default.execute(7, new Object[] {A4PeriodistaNombre, A5PeriodistaApellido, A6PeriodistaSueldo, A7PeriodistaPremiado, A40PeriodistaMonto});
                     pr_default.close(7);
                     /* Retrieving last key number assigned */
                     /* Using cursor T000210 */
                     pr_default.execute(8);
                     A3PeriodistaId = T000210_A3PeriodistaId[0] ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
                     pr_default.close(8);
                     dsDefault.SmartCacheProvider.SetUpdated("Periodista") ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( Insert) rules */
                        /* End of After( Insert) rules */
                        if ( AnyError == 0 )
                        {
                           /* Save values for previous() function. */
                           GX_msglist.addItem(context.GetMessage( "GXM_sucadded", ""), 0, "");
                           ResetCaption020( ) ;
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
            else
            {
               Load0211( ) ;
            }
            EndLevel0211( ) ;
         }
         CloseExtendedTableCursors0211( ) ;
      }

      protected void Update0211( )
      {
         BeforeValidate0211( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable0211( ) ;
         }
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency0211( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm0211( ) ;
               if ( AnyError == 0 )
               {
                  BeforeUpdate0211( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000211 */
                     pr_default.execute(9, new Object[] {A4PeriodistaNombre, A5PeriodistaApellido, A6PeriodistaSueldo, A7PeriodistaPremiado, A40PeriodistaMonto, A3PeriodistaId});
                     pr_default.close(9);
                     dsDefault.SmartCacheProvider.SetUpdated("Periodista") ;
                     if ( (pr_default.getStatus(9) == 103) )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Periodista"}), "RecordIsLocked", 1, "");
                        AnyError = 1 ;
                     }
                     DeferredUpdate0211( ) ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( update) rules */
                        /* End of After( update) rules */
                        if ( AnyError == 0 )
                        {
                           if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                           {
                              if ( AnyError == 0 )
                              {
                                 context.nUserReturn = 1 ;
                              }
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                        AnyError = 1 ;
                     }
                  }
               }
            }
            EndLevel0211( ) ;
         }
         CloseExtendedTableCursors0211( ) ;
      }

      protected void DeferredUpdate0211( )
      {
      }

      protected void delete( )
      {
         BeforeValidate0211( ) ;
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency0211( ) ;
         }
         if ( AnyError == 0 )
         {
            OnDeleteControls0211( ) ;
            AfterConfirm0211( ) ;
            if ( AnyError == 0 )
            {
               BeforeDelete0211( ) ;
               if ( AnyError == 0 )
               {
                  /* No cascading delete specified. */
                  /* Using cursor T000212 */
                  pr_default.execute(10, new Object[] {A3PeriodistaId});
                  pr_default.close(10);
                  dsDefault.SmartCacheProvider.SetUpdated("Periodista") ;
                  if ( AnyError == 0 )
                  {
                     /* Start of After( delete) rules */
                     /* End of After( delete) rules */
                     if ( AnyError == 0 )
                     {
                        if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                        {
                           if ( AnyError == 0 )
                           {
                              context.nUserReturn = 1 ;
                           }
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp", ""), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
         }
         sMode11 = Gx_mode ;
         Gx_mode = "DLT" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         EndLevel0211( ) ;
         Gx_mode = sMode11 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
      }

      protected void OnDeleteControls0211( )
      {
         standaloneModal( ) ;
         if ( AnyError == 0 )
         {
            /* Delete mode formulas */
            AV13Pgmname = "Periodista" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV13Pgmname", AV13Pgmname);
         }
         if ( AnyError == 0 )
         {
            /* Using cursor T000213 */
            pr_default.execute(11, new Object[] {A3PeriodistaId});
            if ( (pr_default.getStatus(11) != 101) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_del", new   object[]  {"Noticia"}), "CannotDeleteReferencedRecord", 1, "");
               AnyError = 1 ;
            }
            pr_default.close(11);
            /* Using cursor T000214 */
            pr_default.execute(12, new Object[] {A3PeriodistaId});
            if ( (pr_default.getStatus(12) != 101) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_del", new   object[]  {"Guia"}), "CannotDeleteReferencedRecord", 1, "");
               AnyError = 1 ;
            }
            pr_default.close(12);
            /* Using cursor T000215 */
            pr_default.execute(13, new Object[] {A3PeriodistaId});
            if ( (pr_default.getStatus(13) != 101) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_del", new   object[]  {"Guia"}), "CannotDeleteReferencedRecord", 1, "");
               AnyError = 1 ;
            }
            pr_default.close(13);
            /* Using cursor T000216 */
            pr_default.execute(14, new Object[] {A3PeriodistaId});
            if ( (pr_default.getStatus(14) != 101) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_del", new   object[]  {"Carne"}), "CannotDeleteReferencedRecord", 1, "");
               AnyError = 1 ;
            }
            pr_default.close(14);
         }
      }

      protected void EndLevel0211( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            pr_default.close(6);
         }
         if ( AnyError == 0 )
         {
            BeforeComplete0211( ) ;
         }
         if ( AnyError == 0 )
         {
            pr_default.close(5);
            pr_default.close(4);
            context.CommitDataStores("Periodista");
            if ( AnyError == 0 )
            {
               ConfirmValues020( ) ;
            }
            /* After transaction rules */
            /* Execute 'After Trn' event if defined. */
            trnEnded = 1 ;
         }
         else
         {
            pr_default.close(5);
            pr_default.close(4);
            context.RollbackDataStores("Periodista");
         }
         IsModified = 0 ;
         if ( AnyError != 0 )
         {
            context.wjLoc = "" ;
            context.nUserReturn = 0 ;
         }
      }

      public void ScanStart0211( )
      {
         /* Scan By routine */
         /* Using cursor T000217 */
         pr_default.execute(15);
         RcdFound11 = 0 ;
         if ( (pr_default.getStatus(15) != 101) )
         {
            RcdFound11 = 1 ;
            A3PeriodistaId = T000217_A3PeriodistaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
         }
         /* Load Subordinate Levels */
      }

      protected void ScanNext0211( )
      {
         /* Scan next routine */
         pr_default.readNext(15);
         RcdFound11 = 0 ;
         if ( (pr_default.getStatus(15) != 101) )
         {
            RcdFound11 = 1 ;
            A3PeriodistaId = T000217_A3PeriodistaId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
         }
      }

      protected void ScanEnd0211( )
      {
      }

      protected void AfterConfirm0211( )
      {
         /* After Confirm Rules */
      }

      protected void BeforeInsert0211( )
      {
         /* Before Insert Rules */
      }

      protected void BeforeUpdate0211( )
      {
         /* Before Update Rules */
      }

      protected void BeforeDelete0211( )
      {
         /* Before Delete Rules */
      }

      protected void BeforeComplete0211( )
      {
         /* Before Complete Rules */
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )  )
         {
            new altacarnet(context ).execute( ref  A3PeriodistaId, ref  A4PeriodistaNombre) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
         }
      }

      protected void BeforeValidate0211( )
      {
         /* Before Validate Rules */
      }

      protected void DisableAttributes0211( )
      {
         edtPeriodistaId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaId_Enabled), 5, 0)));
         edtPeriodistaNombre_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaNombre_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaNombre_Enabled), 5, 0)));
         edtPeriodistaApellido_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaApellido_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaApellido_Enabled), 5, 0)));
         edtPeriodistaSueldo_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaSueldo_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaSueldo_Enabled), 5, 0)));
         chkPeriodistaPremiado.Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, chkPeriodistaPremiado_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(chkPeriodistaPremiado.Enabled), 5, 0)));
         edtPeriodistaMonto_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtPeriodistaMonto_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtPeriodistaMonto_Enabled), 5, 0)));
      }

      protected void assign_properties_default( )
      {
      }

      protected void ConfirmValues020( )
      {
      }

      public override void RenderHtmlHeaders( )
      {
         GxWebStd.gx_html_headers( context, 0, "", "", Form.Meta, Form.Metaequiv, "IE=EmulateIE7");
      }

      public override void RenderHtmlOpenForm( )
      {
         context.WriteHtmlText( "<title>") ;
         context.WriteHtmlText( Form.Caption) ;
         context.WriteHtmlTextNl( "</title>") ;
         if ( StringUtil.Len( sDynURL) > 0 )
         {
            context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
         }
         define_styles( ) ;
         MasterPageObj.master_styles();
         if ( ! context.isSmartDevice( ) )
         {
            context.AddJavascriptSource("gxgral.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxcfg.js", "?"+context.GetBuildNumber( 58381));
         }
         else
         {
            context.AddJavascriptSource("gxapiSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxfxSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxtypesSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxpopupSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxfrmutlSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxgridSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("JavaScripTableSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("rijndaelSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxgralSD.js", "?"+context.GetBuildNumber( 58381));
            context.AddJavascriptSource("gxcfg.js", "?"+context.GetBuildNumber( 58381));
         }
         context.WriteHtmlText( Form.Headerrawhtml) ;
         context.CloseHtmlHeader();
         FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,true,false)\" onkeydown=\"gx.evt.onkeypress(null,true,false)\"" ;
         context.WriteHtmlText( "<body") ;
         context.WriteHtmlText( " "+"class=\"Form\""+" "+" style=\"-moz-opacity:0;opacity:0;"+"background-color:"+context.BuildHTMLColor( Form.Backcolor)+";") ;
         if ( ! ( String.IsNullOrEmpty(StringUtil.RTrim( Form.Background)) ) )
         {
            context.WriteHtmlText( " background-image:url("+context.convertURL( Form.Background)+")") ;
         }
         context.WriteHtmlText( "\""+FormProcess+">") ;
         context.skipLines(1);
         context.WriteHtmlTextNl( "<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" class=\"Form\" novalidate action=\""+formatLink("periodista.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7PeriodistaId)+"\">") ;
         GxWebStd.gx_hidden_field( context, "_EventName", "");
         GxWebStd.gx_hidden_field( context, "_EventGridId", "");
         GxWebStd.gx_hidden_field( context, "_EventRowId", "");
      }

      public override void RenderHtmlCloseForm( )
      {
         /* Send hidden variables. */
         /* Send saved values. */
         GxWebStd.gx_hidden_field( context, "Z3PeriodistaId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z3PeriodistaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z4PeriodistaNombre", StringUtil.RTrim( Z4PeriodistaNombre));
         GxWebStd.gx_hidden_field( context, "Z5PeriodistaApellido", StringUtil.RTrim( Z5PeriodistaApellido));
         GxWebStd.gx_hidden_field( context, "Z6PeriodistaSueldo", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z6PeriodistaSueldo), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z7PeriodistaPremiado", StringUtil.BoolToStr( Z7PeriodistaPremiado));
         GxWebStd.gx_hidden_field( context, "Z40PeriodistaMonto", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z40PeriodistaMonto), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "IsConfirmed", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsConfirmed), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "IsModified", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsModified), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Mode", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "vPERIODISTAID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV7PeriodistaId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vPGMNAME", StringUtil.RTrim( AV13Pgmname));
         GxWebStd.gx_hidden_field( context, "vMODE", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "GX_FocusControl", GX_FocusControl);
         SendAjaxEncryptionKey();
         SendComponentObjects();
         SendServerCommands();
         SendState();
         context.WriteHtmlTextNl( "</form>") ;
         include_jscripts( ) ;
      }

      public override short ExecuteStartEvent( )
      {
         standaloneStartup( ) ;
         gxajaxcallmode = (short)((isAjaxCallMode( ) ? 1 : 0)) ;
         return gxajaxcallmode ;
      }

      public override void RenderHtmlContent( )
      {
         Draw( ) ;
      }

      public override void DispatchEvents( )
      {
         Process( ) ;
      }

      public override bool HasEnterEvent( )
      {
         return true ;
      }

      public override String GetPgmname( )
      {
         return "Periodista" ;
      }

      public override String GetPgmdesc( )
      {
         return "Periodista" ;
      }

      public override GXWebForm GetForm( )
      {
         return Form ;
      }

      public override String GetSelfLink( )
      {
         return formatLink("periodista.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7PeriodistaId) ;
      }

      protected void InitializeNonKey0211( )
      {
         A4PeriodistaNombre = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
         A5PeriodistaApellido = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5PeriodistaApellido", A5PeriodistaApellido);
         A6PeriodistaSueldo = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6PeriodistaSueldo", StringUtil.LTrim( StringUtil.Str( (decimal)(A6PeriodistaSueldo), 4, 0)));
         A7PeriodistaPremiado = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A7PeriodistaPremiado", StringUtil.BoolToStr( A7PeriodistaPremiado));
         A40PeriodistaMonto = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A40PeriodistaMonto", StringUtil.LTrim( StringUtil.Str( (decimal)(A40PeriodistaMonto), 4, 0)));
      }

      protected void InitAll0211( )
      {
         A3PeriodistaId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
         InitializeNonKey0211( ) ;
      }

      protected void StandaloneModalInsert( )
      {
      }

      protected void define_styles( )
      {
         AddThemeStyleSheetFile("", context.GetTheme( )+".css", "?20412474");
         idxLst = 1 ;
         while ( idxLst <= Form.Jscriptsrc.Count )
         {
            context.AddJavascriptSource(StringUtil.RTrim( Form.Jscriptsrc.Item(idxLst)), "?2012829222614");
            idxLst = (int)(idxLst+1) ;
         }
         /* End function define_styles */
      }

      protected void include_jscripts( )
      {
         context.AddJavascriptSource("messages.spa.js", "?"+context.GetBuildNumber( 58381));
         context.AddJavascriptSource("periodista.js", "?2012829222614");
         /* End function include_jscripts */
      }

      protected void init_default_properties( )
      {
         imgBtn_first_Internalname = "BTN_FIRST" ;
         imgBtn_first_separator_Internalname = "BTN_FIRST_SEPARATOR" ;
         imgBtn_previous_Internalname = "BTN_PREVIOUS" ;
         imgBtn_previous_separator_Internalname = "BTN_PREVIOUS_SEPARATOR" ;
         imgBtn_next_Internalname = "BTN_NEXT" ;
         imgBtn_next_separator_Internalname = "BTN_NEXT_SEPARATOR" ;
         imgBtn_last_Internalname = "BTN_LAST" ;
         imgBtn_last_separator_Internalname = "BTN_LAST_SEPARATOR" ;
         imgBtn_select_Internalname = "BTN_SELECT" ;
         imgBtn_select_separator_Internalname = "BTN_SELECT_SEPARATOR" ;
         imgBtn_enter2_Internalname = "BTN_ENTER2" ;
         imgBtn_enter2_separator_Internalname = "BTN_ENTER2_SEPARATOR" ;
         imgBtn_cancel2_Internalname = "BTN_CANCEL2" ;
         imgBtn_cancel2_separator_Internalname = "BTN_CANCEL2_SEPARATOR" ;
         imgBtn_delete2_Internalname = "BTN_DELETE2" ;
         imgBtn_delete2_separator_Internalname = "BTN_DELETE2_SEPARATOR" ;
         divSectiontoolbar_Internalname = "SECTIONTOOLBAR" ;
         tblTabletoolbar_Internalname = "TABLETOOLBAR" ;
         lblTextblockperiodistaid_Internalname = "TEXTBLOCKPERIODISTAID" ;
         edtPeriodistaId_Internalname = "PERIODISTAID" ;
         lblTextblockperiodistanombre_Internalname = "TEXTBLOCKPERIODISTANOMBRE" ;
         edtPeriodistaNombre_Internalname = "PERIODISTANOMBRE" ;
         lblTextblockperiodistaapellido_Internalname = "TEXTBLOCKPERIODISTAAPELLIDO" ;
         edtPeriodistaApellido_Internalname = "PERIODISTAAPELLIDO" ;
         lblTextblockperiodistasueldo_Internalname = "TEXTBLOCKPERIODISTASUELDO" ;
         edtPeriodistaSueldo_Internalname = "PERIODISTASUELDO" ;
         lblTextblockperiodistapremiado_Internalname = "TEXTBLOCKPERIODISTAPREMIADO" ;
         chkPeriodistaPremiado_Internalname = "PERIODISTAPREMIADO" ;
         lblTextblockperiodistamonto_Internalname = "TEXTBLOCKPERIODISTAMONTO" ;
         edtPeriodistaMonto_Internalname = "PERIODISTAMONTO" ;
         tblTable2_Internalname = "TABLE2" ;
         bttBtn_enter_Internalname = "BTN_ENTER" ;
         bttBtn_cancel_Internalname = "BTN_CANCEL" ;
         bttBtn_delete_Internalname = "BTN_DELETE" ;
         tblTable1_Internalname = "TABLE1" ;
         grpGroupdata_Internalname = "GROUPDATA" ;
         tblTablemain_Internalname = "TABLEMAIN" ;
         Form.Internalname = "FORM" ;
      }

      public override void initialize_properties( )
      {
         init_default_properties( ) ;
         Form.Headerrawhtml = "" ;
         Form.Background = "" ;
         Form.Backcolor = (int)(0xFFFFFF) ;
         Form.Caption = "Periodista" ;
         imgBtn_delete2_separator_Visible = 1 ;
         imgBtn_delete2_Enabled = 1 ;
         imgBtn_delete2_Visible = 1 ;
         imgBtn_cancel2_separator_Visible = 1 ;
         imgBtn_cancel2_Visible = 1 ;
         imgBtn_enter2_separator_Visible = 1 ;
         imgBtn_enter2_Enabled = 1 ;
         imgBtn_enter2_Visible = 1 ;
         imgBtn_select_separator_Visible = 1 ;
         imgBtn_select_Visible = 1 ;
         imgBtn_last_separator_Visible = 1 ;
         imgBtn_last_Visible = 1 ;
         imgBtn_next_separator_Visible = 1 ;
         imgBtn_next_Visible = 1 ;
         imgBtn_previous_separator_Visible = 1 ;
         imgBtn_previous_Visible = 1 ;
         imgBtn_first_separator_Visible = 1 ;
         imgBtn_first_Visible = 1 ;
         edtPeriodistaMonto_Jsonclick = "" ;
         edtPeriodistaMonto_Enabled = 1 ;
         chkPeriodistaPremiado.Enabled = 1 ;
         edtPeriodistaSueldo_Jsonclick = "" ;
         edtPeriodistaSueldo_Enabled = 1 ;
         edtPeriodistaApellido_Jsonclick = "" ;
         edtPeriodistaApellido_Enabled = 1 ;
         edtPeriodistaNombre_Jsonclick = "" ;
         edtPeriodistaNombre_Enabled = 1 ;
         edtPeriodistaId_Jsonclick = "" ;
         edtPeriodistaId_Enabled = 0 ;
         bttBtn_delete_Visible = 1 ;
         bttBtn_cancel_Visible = 1 ;
         bttBtn_enter_Visible = 1 ;
         chkPeriodistaPremiado.Caption = "" ;
         context.GX_msglist.DisplayMode = 1 ;
      }

      protected void dynload_actions( )
      {
         /* End function dynload_actions */
      }

      protected void XC_3_0211( String Gx_mode ,
                                short A3PeriodistaId ,
                                String A4PeriodistaNombre )
      {
         if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )  )
         {
            new altacarnet(context ).execute( ref  A3PeriodistaId, ref  A4PeriodistaNombre) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3PeriodistaId", StringUtil.LTrim( StringUtil.Str( (decimal)(A3PeriodistaId), 4, 0)));
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4PeriodistaNombre", A4PeriodistaNombre);
         }
         GxWebStd.set_html_headers( context, 0, "", "");
         context.GX_webresponse.AddString("new Array( new Array(");
         context.GX_webresponse.AddString("\""+GXUtil.EncodeJSConstant( StringUtil.LTrim( StringUtil.NToC( (decimal)(A3PeriodistaId), 4, 0, ".", "")))+"\""+","+"\""+GXUtil.EncodeJSConstant( StringUtil.RTrim( A4PeriodistaNombre))+"\"");
         context.GX_webresponse.AddString(")");
         if ( true )
         {
            context.GX_webresponse.AddString(",");
            context.GX_webresponse.AddString("101");
         }
         context.GX_webresponse.AddString(")");
      }

      public void cleanup( )
      {
         flushBuffer();
         CloseOpenCursors();
         if ( IsMain )
         {
            context.CloseConnections() ;
         }
      }

      protected void CloseOpenCursors( )
      {
         pr_default.close(15);
         pr_default.close(5);
         pr_default.close(4);
      }

      public override void initialize( )
      {
         sPrefix = "" ;
         wcpOGx_mode = "" ;
         scmdbuf = "" ;
         gxfirstwebparm = "" ;
         gxfirstwebparm_bkp = "" ;
         A4PeriodistaNombre = "" ;
         PreviousTooltip = "" ;
         PreviousCaption = "" ;
         Form = new GXWebForm();
         GX_FocusControl = "" ;
         sStyleString = "" ;
         ClassString = "" ;
         StyleString = "" ;
         TempTags = "" ;
         bttBtn_enter_Jsonclick = "" ;
         bttBtn_cancel_Jsonclick = "" ;
         bttBtn_delete_Jsonclick = "" ;
         lblTextblockperiodistaid_Jsonclick = "" ;
         lblTextblockperiodistanombre_Jsonclick = "" ;
         lblTextblockperiodistaapellido_Jsonclick = "" ;
         A5PeriodistaApellido = "" ;
         lblTextblockperiodistasueldo_Jsonclick = "" ;
         lblTextblockperiodistapremiado_Jsonclick = "" ;
         lblTextblockperiodistamonto_Jsonclick = "" ;
         imgBtn_first_Jsonclick = "" ;
         imgBtn_first_separator_Jsonclick = "" ;
         imgBtn_previous_Jsonclick = "" ;
         imgBtn_previous_separator_Jsonclick = "" ;
         imgBtn_next_Jsonclick = "" ;
         imgBtn_next_separator_Jsonclick = "" ;
         imgBtn_last_Jsonclick = "" ;
         imgBtn_last_separator_Jsonclick = "" ;
         imgBtn_select_Jsonclick = "" ;
         imgBtn_select_separator_Jsonclick = "" ;
         imgBtn_enter2_Jsonclick = "" ;
         imgBtn_enter2_separator_Jsonclick = "" ;
         imgBtn_cancel2_Jsonclick = "" ;
         imgBtn_cancel2_separator_Jsonclick = "" ;
         imgBtn_delete2_Jsonclick = "" ;
         imgBtn_delete2_separator_Jsonclick = "" ;
         Z4PeriodistaNombre = "" ;
         Z5PeriodistaApellido = "" ;
         AV13Pgmname = "" ;
         sMode11 = "" ;
         sEvt = "" ;
         EvtGridId = "" ;
         EvtRowId = "" ;
         sEvtType = "" ;
         AV10TrnContext = new SdtTransactionContext(context);
         AV11WebSession = new GxWebSession( context);
         T00024_A3PeriodistaId = new short[1] ;
         T00024_A4PeriodistaNombre = new String[] {""} ;
         T00024_A5PeriodistaApellido = new String[] {""} ;
         T00024_A6PeriodistaSueldo = new short[1] ;
         T00024_A7PeriodistaPremiado = new bool[] {false} ;
         T00024_A40PeriodistaMonto = new short[1] ;
         T00025_A3PeriodistaId = new short[1] ;
         T00023_A3PeriodistaId = new short[1] ;
         T00023_A4PeriodistaNombre = new String[] {""} ;
         T00023_A5PeriodistaApellido = new String[] {""} ;
         T00023_A6PeriodistaSueldo = new short[1] ;
         T00023_A7PeriodistaPremiado = new bool[] {false} ;
         T00023_A40PeriodistaMonto = new short[1] ;
         T00026_A3PeriodistaId = new short[1] ;
         T00027_A3PeriodistaId = new short[1] ;
         T00028_A3PeriodistaId = new short[1] ;
         T00028_A4PeriodistaNombre = new String[] {""} ;
         T00028_A5PeriodistaApellido = new String[] {""} ;
         T00028_A6PeriodistaSueldo = new short[1] ;
         T00028_A7PeriodistaPremiado = new bool[] {false} ;
         T00028_A40PeriodistaMonto = new short[1] ;
         T000210_A3PeriodistaId = new short[1] ;
         T000213_A34NoticiaId = new short[1] ;
         T000214_A22GuiaId = new short[1] ;
         T000215_A22GuiaId = new short[1] ;
         T000216_A8CarneId = new short[1] ;
         T000217_A3PeriodistaId = new short[1] ;
         sDynURL = "" ;
         FormProcess = "" ;
         pr_default = new DataStoreProvider(context, new GeneXus.Programs.periodista__default(),
            new Object[][] {
                new Object[] {
               T00022_A3PeriodistaId, T00022_A4PeriodistaNombre, T00022_A5PeriodistaApellido, T00022_A6PeriodistaSueldo, T00022_A7PeriodistaPremiado, T00022_A40PeriodistaMonto
               }
               , new Object[] {
               T00023_A3PeriodistaId, T00023_A4PeriodistaNombre, T00023_A5PeriodistaApellido, T00023_A6PeriodistaSueldo, T00023_A7PeriodistaPremiado, T00023_A40PeriodistaMonto
               }
               , new Object[] {
               T00024_A3PeriodistaId, T00024_A4PeriodistaNombre, T00024_A5PeriodistaApellido, T00024_A6PeriodistaSueldo, T00024_A7PeriodistaPremiado, T00024_A40PeriodistaMonto
               }
               , new Object[] {
               T00025_A3PeriodistaId
               }
               , new Object[] {
               T00026_A3PeriodistaId
               }
               , new Object[] {
               T00027_A3PeriodistaId
               }
               , new Object[] {
               T00028_A3PeriodistaId, T00028_A4PeriodistaNombre, T00028_A5PeriodistaApellido, T00028_A6PeriodistaSueldo, T00028_A7PeriodistaPremiado, T00028_A40PeriodistaMonto
               }
               , new Object[] {
               }
               , new Object[] {
               T000210_A3PeriodistaId
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               T000213_A34NoticiaId
               }
               , new Object[] {
               T000214_A22GuiaId
               }
               , new Object[] {
               T000215_A22GuiaId
               }
               , new Object[] {
               T000216_A8CarneId
               }
               , new Object[] {
               T000217_A3PeriodistaId
               }
            }
         );
         AV13Pgmname = "Periodista" ;
      }

      private short wcpOAV7PeriodistaId ;
      private short GxWebError ;
      private short A3PeriodistaId ;
      private short AV7PeriodistaId ;
      private short IsConfirmed ;
      private short IsModified ;
      private short AnyError ;
      private short nKeyPressed ;
      private short initialized ;
      private short A6PeriodistaSueldo ;
      private short A40PeriodistaMonto ;
      private short Z3PeriodistaId ;
      private short Z6PeriodistaSueldo ;
      private short Z40PeriodistaMonto ;
      private short RcdFound11 ;
      private short GX_JID ;
      private short Gx_BScreen ;
      private short gxajaxcallmode ;
      private int trnEnded ;
      private int bttBtn_enter_Visible ;
      private int bttBtn_cancel_Visible ;
      private int bttBtn_delete_Visible ;
      private int edtPeriodistaId_Enabled ;
      private int edtPeriodistaNombre_Enabled ;
      private int edtPeriodistaApellido_Enabled ;
      private int edtPeriodistaSueldo_Enabled ;
      private int edtPeriodistaMonto_Enabled ;
      private int imgBtn_first_Visible ;
      private int imgBtn_first_separator_Visible ;
      private int imgBtn_previous_Visible ;
      private int imgBtn_previous_separator_Visible ;
      private int imgBtn_next_Visible ;
      private int imgBtn_next_separator_Visible ;
      private int imgBtn_last_Visible ;
      private int imgBtn_last_separator_Visible ;
      private int imgBtn_select_Visible ;
      private int imgBtn_select_separator_Visible ;
      private int imgBtn_enter2_Visible ;
      private int imgBtn_enter2_Enabled ;
      private int imgBtn_enter2_separator_Visible ;
      private int imgBtn_cancel2_Visible ;
      private int imgBtn_cancel2_separator_Visible ;
      private int imgBtn_delete2_Visible ;
      private int imgBtn_delete2_Enabled ;
      private int imgBtn_delete2_separator_Visible ;
      private int idxLst ;
      private String sPrefix ;
      private String wcpOGx_mode ;
      private String scmdbuf ;
      private String gxfirstwebparm ;
      private String gxfirstwebparm_bkp ;
      private String Gx_mode ;
      private String chkPeriodistaPremiado_Internalname ;
      private String PreviousTooltip ;
      private String PreviousCaption ;
      private String GX_FocusControl ;
      private String edtPeriodistaNombre_Internalname ;
      private String sStyleString ;
      private String tblTablemain_Internalname ;
      private String ClassString ;
      private String StyleString ;
      private String grpGroupdata_Internalname ;
      private String tblTable1_Internalname ;
      private String TempTags ;
      private String bttBtn_enter_Internalname ;
      private String bttBtn_enter_Jsonclick ;
      private String bttBtn_cancel_Internalname ;
      private String bttBtn_cancel_Jsonclick ;
      private String bttBtn_delete_Internalname ;
      private String bttBtn_delete_Jsonclick ;
      private String tblTable2_Internalname ;
      private String lblTextblockperiodistaid_Internalname ;
      private String lblTextblockperiodistaid_Jsonclick ;
      private String edtPeriodistaId_Internalname ;
      private String edtPeriodistaId_Jsonclick ;
      private String lblTextblockperiodistanombre_Internalname ;
      private String lblTextblockperiodistanombre_Jsonclick ;
      private String edtPeriodistaNombre_Jsonclick ;
      private String lblTextblockperiodistaapellido_Internalname ;
      private String lblTextblockperiodistaapellido_Jsonclick ;
      private String edtPeriodistaApellido_Internalname ;
      private String edtPeriodistaApellido_Jsonclick ;
      private String lblTextblockperiodistasueldo_Internalname ;
      private String lblTextblockperiodistasueldo_Jsonclick ;
      private String edtPeriodistaSueldo_Internalname ;
      private String edtPeriodistaSueldo_Jsonclick ;
      private String lblTextblockperiodistapremiado_Internalname ;
      private String lblTextblockperiodistapremiado_Jsonclick ;
      private String lblTextblockperiodistamonto_Internalname ;
      private String lblTextblockperiodistamonto_Jsonclick ;
      private String edtPeriodistaMonto_Internalname ;
      private String edtPeriodistaMonto_Jsonclick ;
      private String tblTabletoolbar_Internalname ;
      private String divSectiontoolbar_Internalname ;
      private String imgBtn_first_Internalname ;
      private String imgBtn_first_Jsonclick ;
      private String imgBtn_first_separator_Internalname ;
      private String imgBtn_first_separator_Jsonclick ;
      private String imgBtn_previous_Internalname ;
      private String imgBtn_previous_Jsonclick ;
      private String imgBtn_previous_separator_Internalname ;
      private String imgBtn_previous_separator_Jsonclick ;
      private String imgBtn_next_Internalname ;
      private String imgBtn_next_Jsonclick ;
      private String imgBtn_next_separator_Internalname ;
      private String imgBtn_next_separator_Jsonclick ;
      private String imgBtn_last_Internalname ;
      private String imgBtn_last_Jsonclick ;
      private String imgBtn_last_separator_Internalname ;
      private String imgBtn_last_separator_Jsonclick ;
      private String imgBtn_select_Internalname ;
      private String imgBtn_select_Jsonclick ;
      private String imgBtn_select_separator_Internalname ;
      private String imgBtn_select_separator_Jsonclick ;
      private String imgBtn_enter2_Internalname ;
      private String imgBtn_enter2_Jsonclick ;
      private String imgBtn_enter2_separator_Internalname ;
      private String imgBtn_enter2_separator_Jsonclick ;
      private String imgBtn_cancel2_Internalname ;
      private String imgBtn_cancel2_Jsonclick ;
      private String imgBtn_cancel2_separator_Internalname ;
      private String imgBtn_cancel2_separator_Jsonclick ;
      private String imgBtn_delete2_Internalname ;
      private String imgBtn_delete2_Jsonclick ;
      private String imgBtn_delete2_separator_Internalname ;
      private String imgBtn_delete2_separator_Jsonclick ;
      private String AV13Pgmname ;
      private String sMode11 ;
      private String sEvt ;
      private String EvtGridId ;
      private String EvtRowId ;
      private String sEvtType ;
      private String sDynURL ;
      private String FormProcess ;
      private bool entryPointCalled ;
      private bool wbErr ;
      private bool A7PeriodistaPremiado ;
      private bool Z7PeriodistaPremiado ;
      private bool AV9IsAuthorized ;
      private bool returnInSub ;
      private String A4PeriodistaNombre ;
      private String A5PeriodistaApellido ;
      private String Z4PeriodistaNombre ;
      private String Z5PeriodistaApellido ;
      private GxWebSession AV11WebSession ;
      private GXMasterPage MasterPageObj ;
      private IGxDataStore dsDefault ;
      private GXCheckbox chkPeriodistaPremiado ;
      private IDataStoreProvider pr_default ;
      private short[] T00024_A3PeriodistaId ;
      private String[] T00024_A4PeriodistaNombre ;
      private String[] T00024_A5PeriodistaApellido ;
      private short[] T00024_A6PeriodistaSueldo ;
      private bool[] T00024_A7PeriodistaPremiado ;
      private short[] T00024_A40PeriodistaMonto ;
      private short[] T00025_A3PeriodistaId ;
      private short[] T00023_A3PeriodistaId ;
      private String[] T00023_A4PeriodistaNombre ;
      private String[] T00023_A5PeriodistaApellido ;
      private short[] T00023_A6PeriodistaSueldo ;
      private bool[] T00023_A7PeriodistaPremiado ;
      private short[] T00023_A40PeriodistaMonto ;
      private short[] T00026_A3PeriodistaId ;
      private short[] T00027_A3PeriodistaId ;
      private short[] T00028_A3PeriodistaId ;
      private String[] T00028_A4PeriodistaNombre ;
      private String[] T00028_A5PeriodistaApellido ;
      private short[] T00028_A6PeriodistaSueldo ;
      private bool[] T00028_A7PeriodistaPremiado ;
      private short[] T00028_A40PeriodistaMonto ;
      private short[] T000210_A3PeriodistaId ;
      private short[] T000213_A34NoticiaId ;
      private short[] T000214_A22GuiaId ;
      private short[] T000215_A22GuiaId ;
      private short[] T000216_A8CarneId ;
      private short[] T000217_A3PeriodistaId ;
      private short[] T00022_A3PeriodistaId ;
      private String[] T00022_A4PeriodistaNombre ;
      private String[] T00022_A5PeriodistaApellido ;
      private short[] T00022_A6PeriodistaSueldo ;
      private bool[] T00022_A7PeriodistaPremiado ;
      private short[] T00022_A40PeriodistaMonto ;
      private GXWebForm Form ;
      private SdtTransactionContext AV10TrnContext ;
   }

   public class periodista__default : DataStoreHelperBase, IDataStoreHelper
   {
      public ICursor[] getCursors( )
      {
         cursorDefinitions();
         return new Cursor[] {
          new ForEachCursor(def[0])
         ,new ForEachCursor(def[1])
         ,new ForEachCursor(def[2])
         ,new ForEachCursor(def[3])
         ,new ForEachCursor(def[4])
         ,new ForEachCursor(def[5])
         ,new ForEachCursor(def[6])
         ,new UpdateCursor(def[7])
         ,new ForEachCursor(def[8])
         ,new UpdateCursor(def[9])
         ,new UpdateCursor(def[10])
         ,new ForEachCursor(def[11])
         ,new ForEachCursor(def[12])
         ,new ForEachCursor(def[13])
         ,new ForEachCursor(def[14])
         ,new ForEachCursor(def[15])
       };
    }

    private static CursorDef[] def;
    private void cursorDefinitions( )
    {
       if ( def == null )
       {
          Object[] prmT00022 ;
          prmT00022 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00024 ;
          prmT00024 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00025 ;
          prmT00025 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00023 ;
          prmT00023 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00026 ;
          prmT00026 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00027 ;
          prmT00027 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00028 ;
          prmT00028 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00029 ;
          prmT00029 = new Object[] {
          new Object[] {"@PeriodistaNombre",SqlDbType.VarChar,40,0} ,
          new Object[] {"@PeriodistaApellido",SqlDbType.VarChar,40,0} ,
          new Object[] {"@PeriodistaSueldo",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@PeriodistaPremiado",SqlDbType.Bit,4,0} ,
          new Object[] {"@PeriodistaMonto",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000210 ;
          prmT000210 = new Object[] {
          } ;
          Object[] prmT000211 ;
          prmT000211 = new Object[] {
          new Object[] {"@PeriodistaNombre",SqlDbType.VarChar,40,0} ,
          new Object[] {"@PeriodistaApellido",SqlDbType.VarChar,40,0} ,
          new Object[] {"@PeriodistaSueldo",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@PeriodistaPremiado",SqlDbType.Bit,4,0} ,
          new Object[] {"@PeriodistaMonto",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000212 ;
          prmT000212 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000213 ;
          prmT000213 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000214 ;
          prmT000214 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000215 ;
          prmT000215 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000216 ;
          prmT000216 = new Object[] {
          new Object[] {"@PeriodistaId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000217 ;
          prmT000217 = new Object[] {
          } ;
          def= new CursorDef[] {
              new CursorDef("T00022", "SELECT [PeriodistaId], [PeriodistaNombre], [PeriodistaApellido], [PeriodistaSueldo], [PeriodistaPremiado], [PeriodistaMonto] FROM [Periodista] WITH (UPDLOCK) WHERE [PeriodistaId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00022,1,0,true,false )
             ,new CursorDef("T00023", "SELECT [PeriodistaId], [PeriodistaNombre], [PeriodistaApellido], [PeriodistaSueldo], [PeriodistaPremiado], [PeriodistaMonto] FROM [Periodista] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00023,1,0,true,false )
             ,new CursorDef("T00024", "SELECT TM1.[PeriodistaId], TM1.[PeriodistaNombre], TM1.[PeriodistaApellido], TM1.[PeriodistaSueldo], TM1.[PeriodistaPremiado], TM1.[PeriodistaMonto] FROM [Periodista] TM1 WITH (NOLOCK) WHERE TM1.[PeriodistaId] = @PeriodistaId ORDER BY TM1.[PeriodistaId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT00024,100,0,true,false )
             ,new CursorDef("T00025", "SELECT [PeriodistaId] FROM [Periodista] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaId  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00025,1,0,true,false )
             ,new CursorDef("T00026", "SELECT TOP 1 [PeriodistaId] FROM [Periodista] WITH (NOLOCK) WHERE ( [PeriodistaId] > @PeriodistaId) ORDER BY [PeriodistaId]  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00026,1,0,true,true )
             ,new CursorDef("T00027", "SELECT TOP 1 [PeriodistaId] FROM [Periodista] WITH (NOLOCK) WHERE ( [PeriodistaId] < @PeriodistaId) ORDER BY [PeriodistaId] DESC  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00027,1,0,true,true )
             ,new CursorDef("T00028", "SELECT [PeriodistaId], [PeriodistaNombre], [PeriodistaApellido], [PeriodistaSueldo], [PeriodistaPremiado], [PeriodistaMonto] FROM [Periodista] WITH (UPDLOCK) WHERE [PeriodistaId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00028,1,0,true,false )
             ,new CursorDef("T00029", "INSERT INTO [Periodista] ([PeriodistaNombre], [PeriodistaApellido], [PeriodistaSueldo], [PeriodistaPremiado], [PeriodistaMonto]) VALUES (@PeriodistaNombre, @PeriodistaApellido, @PeriodistaSueldo, @PeriodistaPremiado, @PeriodistaMonto)", GxErrorMask.GX_NOMASK,prmT00029)
             ,new CursorDef("T000210", "SELECT Ident_Current('[Periodista]') ",true, GxErrorMask.GX_NOMASK, false, this,prmT000210,1,0,true,false )
             ,new CursorDef("T000211", "UPDATE [Periodista] SET [PeriodistaNombre]=@PeriodistaNombre, [PeriodistaApellido]=@PeriodistaApellido, [PeriodistaSueldo]=@PeriodistaSueldo, [PeriodistaPremiado]=@PeriodistaPremiado, [PeriodistaMonto]=@PeriodistaMonto  WHERE [PeriodistaId] = @PeriodistaId", GxErrorMask.GX_NOMASK,prmT000211)
             ,new CursorDef("T000212", "DELETE FROM [Periodista]  WHERE [PeriodistaId] = @PeriodistaId", GxErrorMask.GX_NOMASK,prmT000212)
             ,new CursorDef("T000213", "SELECT TOP 1 [NoticiaId] FROM [Noticia] WITH (NOLOCK) WHERE [PeriodistaRespId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000213,1,0,true,true )
             ,new CursorDef("T000214", "SELECT TOP 1 [GuiaId] FROM [Guia] WITH (NOLOCK) WHERE [PeriodistaAsisId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000214,1,0,true,true )
             ,new CursorDef("T000215", "SELECT TOP 1 [GuiaId] FROM [Guia] WITH (NOLOCK) WHERE [PeriodistaRespId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000215,1,0,true,true )
             ,new CursorDef("T000216", "SELECT TOP 1 [CarneId] FROM [Carne] WITH (NOLOCK) WHERE [PeriodistaId] = @PeriodistaId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000216,1,0,true,true )
             ,new CursorDef("T000217", "SELECT [PeriodistaId] FROM [Periodista] WITH (NOLOCK) ORDER BY [PeriodistaId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT000217,100,0,true,false )
          };
       }
    }

    public void getResults( int cursor ,
                            IFieldGetter rslt ,
                            Object[] buf )
    {
       switch ( cursor )
       {
             case 0 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((bool[]) buf[4])[0] = rslt.getBool(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                break;
             case 1 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((bool[]) buf[4])[0] = rslt.getBool(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                break;
             case 2 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((bool[]) buf[4])[0] = rslt.getBool(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                break;
             case 3 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 4 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 5 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 6 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((short[]) buf[3])[0] = rslt.getShort(4) ;
                ((bool[]) buf[4])[0] = rslt.getBool(5) ;
                ((short[]) buf[5])[0] = rslt.getShort(6) ;
                break;
             case 8 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 11 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 12 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 13 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 14 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 15 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
       }
    }

    public void setParameters( int cursor ,
                               IFieldSetter stmt ,
                               Object[] parms )
    {
       switch ( cursor )
       {
             case 0 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 1 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 2 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 3 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 4 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 5 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 6 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 7 :
                stmt.SetParameter(1, (String)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                stmt.SetParameter(3, (short)parms[2]);
                stmt.SetParameter(4, (bool)parms[3]);
                stmt.SetParameter(5, (short)parms[4]);
                break;
             case 9 :
                stmt.SetParameter(1, (String)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                stmt.SetParameter(3, (short)parms[2]);
                stmt.SetParameter(4, (bool)parms[3]);
                stmt.SetParameter(5, (short)parms[4]);
                stmt.SetParameter(6, (short)parms[5]);
                break;
             case 10 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 11 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 12 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 13 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 14 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
       }
    }

 }

}
